package com.zhr.mybatis;
import com.zhr.mybatis.mapper.Usermapper;
import com.zhr.mybatis.pojo.User;
import com.zhr.mybatis.utils.SqlSessionUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        SqlSession intersession = SqlSessionUtils.intersession();
        Usermapper mapper = intersession.getMapper(Usermapper.class);
        User user = new User(null, "zhangsan", "123456", 23, "男", "123@123.com");
        mapper.insertUser1(user);
        System.out.println(user.getId());
    }
}
